<%@page import="com.crm.entity.User" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="<%=application.getContextPath() %>/css/css-crm.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="main">
<%
User ur=(User)session.getAttribute("user");
int r=ur.getRole();
if(r!=4) {%>
<div id="slideclose" class="slide-but-close" >
<a href="#"><img src="<%=application.getContextPath() %>/images/but.png" border="0" onclick="javascript:showDiv();"/></a>
</div>
<%} %>
</div>
<div id="slideLoader" style="display:none" align="center"><img src="<%=application.getContextPath()%>/images/loading.gif"/></div>
</body>
</html>
<script type="text/javascript">
function showDiv(){
	$("#slideclose").hide();
	$("#slideLoader").show();
	$.ajax({
		url:"<%=application.getContextPath()%>/slide/show.do" ,
	  	success:function(res){
	  		$('#main').append(res);
	  	}
	  }).done(function(html){
			$("#slideLoader").hide();
	  }).fail(function(html){
	  	$("#slideLoader").hide();
	  	alert("Failed To Load the Data");
	  });
	
}
function hideDiv(){
	$("#slideclose").show();
	$("#slideopen").hide();
	
}
</script>